package com.ych.modules.base.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ych.modules.base.dbEntity.TJobConcernEntity;
import com.ych.modules.base.dbEntity.TUserJobEntity;
import com.ych.modules.base.mapper.TJobConcernMapper;
import com.ych.modules.base.service.ITJobConcernService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Author: Usopp.tsui
 * Date: 2021/3/8
 * Time: 16:46
 * Description:
 */
@Service("ITJobConcernService")
public class TJobConcernServiceImpl extends ServiceImpl<TJobConcernMapper, TJobConcernEntity> implements ITJobConcernService {
    @Resource
    private TJobConcernMapper tJobConcernMapper;

    @Override
    public List<TUserJobEntity> listPersonConcernJob(String userId, int begin, int end) {
        return tJobConcernMapper.listPersonConcernJob(userId, begin, end);
    }

    @Override
    public int listPersonConcernJobCount(String userId, int begin, int end) {
        return tJobConcernMapper.listPersonConcernJobCount(userId, begin, end);
    }
}
